package com.tegistuff.webos.run.debugger.commands;

import com.tegistuff.webos.run.debugger.WebOSDebugSessionProvider;

/**
 * WebOSDisconnectCommand.java
 *
 * Copyright (C) 2011-2012 Timo Tegtmeier.
 * All rights reserved.
 */
public class WebOSDisconnectCommand extends BaseWebOSCommand {

    private WebOSDebugSessionProvider mySessionProvider;

    public WebOSDisconnectCommand(WebOSDebugSessionProvider provider) {
        mySessionProvider = provider;
    }

    @Override
    public void execute() throws Exception {
        mySessionProvider.disconnect();
        done();
    }
}
